package com.nbot.server.util;

import com.nbot.common.domain.Aqyh;
import com.nbot.common.domain.AqyhOld;
import com.nbot.common.domain.Fxgl;
import com.nbot.server.domain.TAqyhAqyhgl;
import com.nbot.server.domain.TFxglykzDetail;
import com.nbot.server.domain.TbAqyhWtyh;

/**
 * 显示对象转换
 */
public class ViewBeanChangeUtil {
    /**
     * TbAqyhWtyh 2 Aqyh
     *
     * @param obj
     * @return
     */
    public static Aqyh toAqyh(TbAqyhWtyh obj) {
        Aqyh aqyh = new Aqyh();
        aqyh.setJcbm(obj.getJcbm());
        aqyh.setJcdw(obj.getJcdw());
        aqyh.setJcsj(obj.getJcsj());
        aqyh.setWtms(obj.getWtms());
        aqyh.setYwfl(obj.getYwfl());
        aqyh.setZgqk(obj.getZgqk());
        aqyh.setDcry(obj.getDcry());
        aqyh.setZgsx(obj.getZgsx());
        return aqyh;
    }

    /**
     * TFxglykzDetail 2 Fxgl
     *
     * @param obj
     * @return
     */
    public static Fxgl toFxgl(TFxglykzDetail obj) {
        Fxgl fxgl = new Fxgl();
//                    fxgl.setBwtr(obj.getBwtr());
//                    fxgl.setId(obj.getId());
//                    fxgl.setIshavbccs(obj.getIshavbccs());
        fxgl.setJhzyrq(obj.getJhzyrq());
//                    fxgl.setJsazynrid(obj.getJsazynrid());
//                    fxgl.setOrgid(obj.getOrgid());
        fxgl.setQrqk(obj.getQrqk());
//                    fxgl.setQrsj(obj.getQrsj());
        fxgl.setTbr(obj.getTbr());
        fxgl.setTbsj(obj.getTbsj());
        fxgl.setXcfzr(obj.getXcfzr());
        fxgl.setZydd(obj.getZydd());
        return fxgl;
    }

    /**
     * TAqyhAqyhgl 2 AqyhOld
     *
     * @param obj
     * @return
     */
    public static AqyhOld toAqyhOld(TAqyhAqyhgl obj) {
        AqyhOld aqyhOld = new AqyhOld();
        aqyhOld.setDcdw(obj.getDcdw());
        aqyhOld.setDcrq(obj.getDcrq());
        aqyhOld.setDcry(obj.getDcry());
        aqyhOld.setSjdw(obj.getSjdw());
        aqyhOld.setWtms(obj.getWtms());
        aqyhOld.setYzcd(obj.getYzcd());
        aqyhOld.setZgqk(obj.getZgqk());
        aqyhOld.setZgrq(obj.getZgrq());
        return aqyhOld;
    }


}
